package com.redside.service.impl;

import java.util.List;

import com.redside.dao.OptionsBeanLookupDao;
import com.redside.dao.exception.DataException;
import com.redside.model.list.OptionsBean;
import com.redside.service.OptionsBeanLookupManager;

public class OptionsBeanLookupManagerImpl implements OptionsBeanLookupManager {

    private OptionsBeanLookupDao dao;

    public void setOptionsBeanLookupDao(OptionsBeanLookupDao dao)
    {
        this.dao = dao;
    }
    
    public List<OptionsBean> findAll(String sql) throws DataException {
        return dao.findAll(sql);
    }
    
    public List<OptionsBean> findAll(String sql, String defaultId, String defaultValue) throws DataException {
        return dao.findAll(sql, defaultId, defaultValue);
    }    

    public OptionsBean findById(String sql, String id) throws DataException {
        return dao.findById(sql, id);
    }
    
    public OptionsBean findById(String sql, Long id) throws DataException {
        return dao.findById(sql, id);
    }
}
